﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="GetLogin.aspx.cs" Inherits="CustomerContactSystem.WebForms.GetLogin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h1 id="introduction">Retrieve Login Details</h1>
<asp:Placeholder ID="RetrievalFormContent" runat="server">
<fieldset>
    <legend>Staff Details:</legend>

    <asp:Label ID="DepartmentListCaption" runat="server" Text="Department:" AssociatedControlID="DepartmentList"></asp:Label>
    <asp:dropdownlist id="DepartmentList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DepartmentListSelectedIndexChanged"></asp:dropdownlist>

    <asp:Label ID="UserListCaption" runat="server" Text="Name:" AssociatedControlID="UserList"></asp:Label>
    <asp:dropdownlist id="UserList" runat="server"></asp:dropdownlist>

    <asp:Button ID="RetrieveLogin" runat="server" Text="Email Me My Login Details" CssClass="submit" OnClick="RetrieveLoginClick" />
    <asp:Label ID="ErrorMsg" runat="server" CssClass="error"></asp:Label>
</fieldset>
</asp:Placeholder>
<asp:Placeholder ID="ThankYouContent" runat="server" Visible="false">
<p>Your login details have been emailed to you.</p>
</asp:Placeholder>    
</asp:Content>
